package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.service.goods.SkuService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: qingcheng_parent
 * @ClassName: SkuController
 * @Time: 2019/7/9
 * @Author: zhou24
 * @Description: @CrossOrigin是允许跨域请求
 * @Experience:
 */
@RestController
@RequestMapping("/sku")
@CrossOrigin
public class SkuController {
    @Reference
    private SkuService skuService;

    @RequestMapping("/price")
    public Integer findPrice(String id){
        return skuService.findPrice(id);
    }

}
